<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>首页</title> <#include "../../commonUse.html"/>
</head>

<body>

	<div class="smart-body">
		<div class="main-title">
			当前位置：首页
			<div class="main-title-time"><i class="layui-icon" style="margin-right: 5px;font-size: 18px;font-weight: 600;">&#xe637;</i><span id="homeTime"></span></div>
		</div>
		<div class="border1pxe6 pad10">
			<fieldset class="layui-elem-field layui-filed-quote">
				<blockquote class="layui-elem-quote layui-quote-nm tunm">用工统计</blockquote>
				<div class="layui-field-box">
					<div class="smart-home_count">
						<div class="smart-count_item">
                            <div class="smart-count_img">
                            	<img src="${ctx.contextPath}/images/home_v1/smart-count-img1.png" alt="">
                            </div>
							<div class="smart-count_detail">
								<p>在册工人</p>
								<p>
									<span class="csp1">${map.total_worker}</span><span class="csp2">人</span>
								</p>
							</div>
							<div class="smart-count_line"></div>
							<div class="smart-count_detail">
								<p>在场工人</p>
								<p>
									<span class="csp1">${map.on_duty_worker}</span><span class="csp2">人</span>
								</p>
							</div>
						</div>
						<div class="smart-count_item" style="background-color: #2cc37e;">
                            <div class="smart-count_img">
                            	<img src="${ctx.contextPath}/images/home_v1/smart-count-img2.png" alt="">
                            </div>
							<div class="smart-count_detail">
								<p>项目数量</p>
								<p>
									<span class="csp1">${map.total_project}</span><span class="csp2">人</span>
								</p>
							</div>
							<div class="smart-count_line"></div>
							<div class="smart-count_detail">
								<p>在场项目</p>
								<p>
									<span class="csp1">${map.on_work_project}</span><span class="csp2">人</span>
								</p>
							</div>
						</div>
					</div>
					<div class="layui-layer-title" style="border:1px solid #e2e2e2;border-bottom:0;padding-left:15px;">在场项目列表</div>
					<form id="form2" class="layui-form">
					<table class="layui-table" lay-skin="line" style="margin-top:0;">
						<thead>
						</thead>
						<tbody id="tbodyData">
							<!-- <tr>
								<td>项目1</td>
								<td class="smart-td-_progress">
									<div class="layui-progress" lay-showPercent="yes">
										<div class="layui-progress-bar layui-bg-blue"
											lay-percent="10%"></div>
									</div>
								</td>
								<td>1234</td>
								<td>111</td>
							</tr> -->
						</tbody>
					</table>
					<!--           ######分页开始 ######             -->

						<div class="tableData1"></div>

						<!--           ######分页结束 ######              -->
					</form>
				</div>
			</fieldset>
		</div>
		
		<div class="border1pxe6 pad10" style="margin-top: 10px;">
			<fieldset class="layui-elem-field layui-filed-quote">
				<blockquote class="layui-elem-quote layui-quote-nm tunm">我的任务</blockquote>
				<div class="layui-field-box">
					<form id="form1" class="layui-form">
						<div class="layui-form-item tuform">
							<div class="layui-inline">
								<label class="layui-form-label">任务编号：</label>
								<div class="layui-input-inline">
									<input type="text" id="applyCode" name="applyCode"
										autocomplete="off" class="layui-input">
								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-label">申请日期：</label>
								<div class="layui-input-inline">
									<input readonly="readonly" name="beginTime" dataType="LimitA"
										msg="申请日期不能为空！" id="beginTime" type="text"
										class="search_input_sc Wdate"
										onclick="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endTime\')}'})" />
								</div>
								<div class="layui-form-mid">-</div>
								<div class="layui-input-inline">
									<input readonly="readonly" name="endTime" dataType="LimitA"
										msg="申请日期不能为空！" id="endTime" type="text"
										class="search_input_sc Wdate"
										onclick="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'beginTime\')}'})" />
								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-label">任务类型：</label>
								<div class="layui-input-inline">
									<select class="smart-body_select" name="taskType" id="taskType">
										<option value="">全部</option>
										<option value="1">我申请的</option>
										<option value="2">已处理</option>
										<option value="3">待处理</option>
									</select>
								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-label">审核结果：</label>
								<div class="layui-input-inline">
									<select class="smart-body_select" name="auditResult"
										id="auditResult">
										<option value="">全部</option>
										<option value="1">审核通过</option>
										<option value="2">审核不通过</option>
										<option value="3">未审核</option>
									</select>
								</div>
							</div>
							<div class="layui-btn layui-btn-primary btn-rtsearch" onclick="searchData();"><i class="layui-icon">&#xe615;</i>查询</div>
						</div>
						<div class="layui-layer-title" style="border:1px solid #e2e2e2;border-bottom:0;padding-left:15px;">我的任务列表<div class="tu-title-right"><img src="${ctx.contextPath}/images/home_v1/icon-tixing.png"><span id="noDealWithNumber"></span></div></div>
						<div id="ntable" style="">
							<table class="layui-table" lay-skin="line" style="margin-top:0;">
								<tbody>
									<tr>
										<td style="width:100px;">任务编号</td>
										<td>标题</td>
										<td>申请人</td>
										<td style="width:120px;">申请日期</td>
										<td>类型</td>
										<td>结果</td>
										<td>操作</td>
									</tr>
								</tbody>
								<tfoot></tfoot>
							</table>
							<div class="tableData">分页</div>
						</div>
					</form>
				</div>
			</fieldset>
		</div>
	</div>

</body>
<script src="${ctx.contextPath}/js/baseVersion/smart-home.js"></script>
<script>
	var element = layui.element();
	// 进度条DOM操作完成后
	element.init();
	var mainTitleTime = new Date();
	$('#homeTime').text(mainTitleTime.getFullYear() + '.' + (mainTitleTime.getMonth()+1) + '.' + mainTitleTime.getDate());
</script>

</html>